import request from "@/utils/request";
import { AxiosPromise } from "axios";

import { newsCardRes, newsTipsRes } from "./types";
export function getCardList(): AxiosPromise<newsCardRes> {
  return request({
    url: `data/JSON/news/card.json`,
    method: "get",
  });
}

export function getNewsTips(): AxiosPromise<newsTipsRes> {
  return request({
    url: `data/JSON/news/newsTips.json`,
    method: "get",
  });
}
